//
//  UITextView.swift
//  
//
//  Created by tangbl93 on 2021/1/6.
//

import UIKit
import UITextView_Placeholder

// MARK: UITextView_Placeholder
public extension UITextView {

    // rewrite placeholder var
    var yx_placeholder: String! {
        get { return placeholder }
        set { placeholder = newValue }
    }

    // rewrite attributedPlaceholder var
    var yx_attributedPlaceholder: NSAttributedString! {
        get { return attributedPlaceholder }
        set { attributedPlaceholder = newValue }
    }

    // rewrite placeholderColor var
    var yx_placeholderColor: UIColor! {
        get { return placeholderColor }
        set { placeholderColor = newValue }
    }
    
    // rewrite placeholderTextView var
    var yx_placeholderTextView:UITextView {
        return placeholderTextView
    }

    // rewrite defaultPlaceholderColor func
    class func yx_defaultPlaceholderColor() -> UIColor {
        return defaultPlaceholderColor()
    }
}
